import java.util.StringTokenizer;

class Main {
	public static void main(String[] args) {
		System.out.println("hello");

		String str = "Java is an Object Oriented programming language";
		//char ca[] = str.toCharArray();
		//String str1 = new String(ca);

		int totalLength = 0;
		int totalNumber = 0;
		StringTokenizer st = new StringTokenizer(str);
		while (st.hasMoreTokens()) {
			String word = st.nextToken();
			System.out.println(word);
			totalNumber++;
			totalLength += word.length();
		}

		System.out.println("average length is " + (double)totalLength / totalNumber);
	}
}

// 